<?php

use Illuminate\Database\Seeder;

class PermissionSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $permissions = ['menu_project', 'menu_admin', 'menu_document', 'menu_task'];

        array_map(function ($permissionName) {
            DB::table('permissions')->insert([
                'name' => $permissionName,
                'label' => ucfirst($permissionName)]);
        }, $permissions);
    }
}
